package sys.message;

import org.json.*;

public abstract class UniMessage
{ 
    abstract public Object get(String key) throws JSONException;
    abstract public String getString(String key) throws JSONException;
    abstract public int getInt(String key) throws JSONException;
    abstract public double getDouble(String key) throws JSONException;

    abstract public void put(String key, Object value) throws JSONException;
    abstract public void put(String key, String value) throws JSONException;
    abstract public void put(String key, int value) throws JSONException;
    abstract public void put(String key, double value) throws JSONException;

    public String getTo() { return to; }
    public String getFrom() { return from; }
    public String getSubj() { return subj; }
    public String getBody() { return body; }

    protected  String  to,
                    from,
                    subj,
                    body;
}
